package com.yazi.mxz.behavior.entity.repository;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.GeoSpatialIndexType;
import org.springframework.data.mongodb.core.index.GeoSpatialIndexed;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Document
public class Store implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@Indexed
	private Long storeId;	
	private Long companyId;
	private String name;
	private String phone;
	private String logo;
	private String address;
	private String regionPath;
	private Float goodsScore;
	private Float serviceScore;
	private Float deliveryScore;
	private Boolean isRecommand;
	private Long recommandSort;
	
	@GeoSpatialIndexed(type = GeoSpatialIndexType.GEO_2DSPHERE)
	private double[] location;

	public Long getStoreId() {
		return storeId;
	}

	public void setStoreId(Long storeId) {
		this.storeId = storeId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getRegionPath() {
		return regionPath;
	}

	public void setRegionPath(String regionPath) {
		this.regionPath = regionPath;
	}

	public Float getGoodsScore() {
		return goodsScore;
	}

	public void setGoodsScore(Float goodsScore) {
		this.goodsScore = goodsScore;
	}

	public Float getServiceScore() {
		return serviceScore;
	}

	public void setServiceScore(Float serviceScore) {
		this.serviceScore = serviceScore;
	}

	public Float getDeliveryScore() {
		return deliveryScore;
	}

	public void setDeliveryScore(Float deliveryScore) {
		this.deliveryScore = deliveryScore;
	}

	public Boolean getIsRecommand() {
		return isRecommand;
	}

	public void setIsRecommand(Boolean isRecommand) {
		this.isRecommand = isRecommand;
	}

	public Long getRecommandSort() {
		return recommandSort;
	}

	public void setRecommandSort(Long recommandSort) {
		this.recommandSort = recommandSort;
	}

	public double[] getLocation() {
		return location;
	}

	public void setLocation(double[] location) {
		this.location = location;
	}

	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

}
